package week13;

/**
 * Created by dell on 2017/5/17.
 */
public class Bookshelf {
    public static void main(String[] args){
        Book book1 = new Book();
        Book book2 = new Book("《密码学》" ,"李四");
        Book book3 = new Book("《数据结构》","张三","人民教育出版社",201501);
        Book book4 = new Book("《数据结构》","张三","人民教育出版社",201501);
        Book book5 = new Book("《数据结构》","张三","人民邮电出版社",201501);
        Book book6 = new Book("人民教育出版社", 201501);

        book1.setName("《Java程序设计》");
        book1.setWriter("王五");
        book1.setOuter("清华大学出版社");
        book1.setDate(201606);

        System.out.println("书本信息：书名："+ book1.getName() + "作者："
                + book1.getWriter()+ "出版社："+book1.getOuter()+"出版年月："+book1.getDate());

        System.out.println(book2.equals(book6));

        System.out.println(book3.equals(book4));
        System.out.print(book3.equals(book5));
    }
}
